﻿<Window x:Class="CECB.ActivationCodeEmail_Window"
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     Title="MainWindow"    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
      WindowStartupLocation="CenterScreen"   Background="#AA000000" 
        AllowsTransparency="True" WindowStyle="None" WindowState="Maximized"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  >
    <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="800" Height="664">
        <Rectangle VerticalAlignment="Center" HorizontalAlignment="Center" Width="602" Height="652" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4" Margin="123,12,75,-14">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" Margin="150,0,101,0" Width="549" Height="664">
            <WrapPanel Height="76">
                <Label Content="Send Emails" Foreground="White" Height="auto" HorizontalAlignment="Left" Margin="0,30,0,0" VerticalAlignment="Center" Width="146" FontSize="20" FontStretch="Normal" FontStyle="Normal" FontWeight="Black"/>
            </WrapPanel>
            <GroupBox Height="575">
                <StackPanel Height="570">
                    <WrapPanel Orientation="Horizontal">
                        <Label Content="Select Project" Height="28"  Margin="25,6,0,6" Foreground="White" />
                        <toolkit:AutoCompleteBox Name="TeamAutocompleteTextBox" Width="271.553" Margin="150,0,0,0" Height="30"  ValueMemberPath="proj_name"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="TeamReferenceTextBox_SelectionChanged" FontSize="18" Background="#FFFFE8A6" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2">
                            <toolkit:AutoCompleteBox.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=proj_name}"/>
                                        <TextBlock Text=" - "/>
                                        <TextBlock Text="{Binding Path=proj_reference}"/>

                                    </StackPanel>
                                </DataTemplate>
                            </toolkit:AutoCompleteBox.ItemTemplate>
                        </toolkit:AutoCompleteBox>
                    </WrapPanel>
                    <WrapPanel Orientation="Horizontal">
                        <Label Content="Project Team" Height="28" Margin="25,6,0,6" Foreground="White" />
                        <Label Name="Label_projectTeam" Height="28" Foreground="Black" Width="275" Margin="150,6,0,6" Background="#FFFFE8A6" />
                    </WrapPanel>
                    <WrapPanel Orientation="Horizontal">
                        <Label Content="Select Matrix Type" Height="28" Margin="25,6,0,6" Foreground="White" />
                        <RadioButton VerticalAlignment="Center" Content="Leopold Matrix   " Name="RdbLeo" Margin="130,0,0,0" Foreground="White" Background="#FFFFE8A6"></RadioButton>
                        <RadioButton VerticalAlignment="Center" Content="Simple Matrix   " Name="RdbSim" Margin="30,0,0,0" Foreground="White" Background="#FFFFE8A6"></RadioButton>
                    </WrapPanel>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="250" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <StackPanel Grid.Column="1">
                            <ListBox x:Name="listBoxMembers" ScrollViewer.CanContentScroll="False" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Margin="0,0,0,0" Height="210" Background="#FFFFE8A6" Width="281" SelectionChanged="listBoxMembers_SelectionChanged">
                                <ListBox.ItemTemplate>
                                    <DataTemplate>
                                        <WrapPanel Background="#FF3E3832" >
                                            <StackPanel Orientation="Horizontal"  >
                                                <WrapPanel Orientation="Horizontal"  Width="300">
                                                    <Label Content="{Binding mem_name}" Height="auto" Width="auto" Foreground="White" HorizontalAlignment="Left" FontSize="15" />
                                                </WrapPanel>
                                            </StackPanel>
                                        </WrapPanel>
                                    </DataTemplate>
                                </ListBox.ItemTemplate>
                            </ListBox>
                        </StackPanel>
                        <Label Content="Team Members" Foreground="White" Height="28" Margin="25,10,122,212" />
                    </Grid>
                    <StackPanel Height="225" Margin="0,-40,0,0" Name="stackPanel1" Orientation="Vertical" Width="527">
                        <WrapPanel Orientation="Horizontal" Background="DimGray">
                            <Label Content="Team Member :" Height="27" Foreground="White" Width="197"   HorizontalAlignment="Left" />
                            <Label Content="Team Member" FontWeight="Bold" Height="27" Foreground="Black" Width="277" Name="teamMember" HorizontalAlignment="Center" Margin="52,0,0,0" Background="#FFF8F2BC" />
                        </WrapPanel>
                        <WrapPanel Orientation="Vertical" Height="167">

                            <StackPanel Width="524">
                                <Label Content="Select Components :" Height="27"  Foreground="White" Width="140"  HorizontalAlignment="Left" />
                                <ListBox Name="listBoxComponents" SelectionChanged="listBoxComponents_SelectionChanged" Height="130" Width="517" Margin="0,5,0,0" SelectionMode="Single" Background="#FFFFE8A6">
                                    <ListBox.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel Background="#FF3E3832" Orientation="Horizontal" Width="517">
                                                <Label Content="{Binding cmpt_mainCat }" Foreground="White" Width="160" FontSize="14" Height="30"  />
                                                <Label  Content=" => " FontSize="14" Width="30" Height="30"  Margin="0,0,0,0" />
                                                <Label Content="{Binding cmpt_name }" Foreground="White" Height="30" Width="180"  Margin="0,0,0,0"      FontSize="14" />
                                                <Button Content="Genarate Excel"  Height="32" Name="buttonExcelGenarate" HorizontalAlignment="Right" Width="100"    Click="buttonExcelGenarate_Click" Background="White" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </ListBox.ItemTemplate>
                                </ListBox>
                            </StackPanel>
                        </WrapPanel>
                        <WrapPanel Orientation="Horizontal" Height="46">
                            <Button Content="View Excels" Height="32" Name="button3" Width="127" Margin="265,0,0,0"  Click="button3_Click" Background="#FF393434" Foreground="White" BorderBrush="White" BorderThickness="2" />
                            <Button Content="Send Emails" Height="32" Name="buttonSendAllEmail" Width="120" Margin="10,0,0,0"  Click="buttonSendAllEmail_Click" Background="#FF393434" Foreground="White" BorderBrush="White" BorderThickness="2" />
                        </WrapPanel>
                    </StackPanel>

                </StackPanel>
            </GroupBox>

        </StackPanel>
        <Button  HorizontalAlignment="Right" Height="42" Width="42" VerticalAlignment="Top" Name="ButtonClose" Click="ButtonClose_Click" Margin="0,28,90,0">
            <Grid>
                <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32"   />
        </Grid>
        </Button>
    </Grid>
</Window>
